package com.ljx.itbbs.server.user.mapper;

import com.ljx.itbbs.server.user.domain.entity.PermsEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ljx.itbbs.server.user.domain.vo.resp.PermsResp;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 权限表 Mapper 接口
 * </p>
 *
 * @author LiJunXi
 * @since 2024-03-02
 */
public interface PermsMapper extends BaseMapper<PermsEntity> {

    Set<String> getPermission(Long uid);

    List<PermsResp> getByRoleId(Long roleId);
}
